import java.util.Scanner;

public class homework46 {
    public static void main(String[] args) {
        int sum = 48;//车的总数量
        int sumLunzi = 172;//车的总轮子数
        for(int i = 1;i<= sum;i++){
            for(int j =1;j<=sum;j++){
                if(i+j == sum && 3*i+4*j==sumLunzi){
                    System.out.println("汽车的数量："+j+",摩托车的数量："+i);
                    return;
                }
            }
        }
    }
}






















































































































































































































































































